package com.docking.heylo.dao.mapper;

import com.docking.heylo.dao.entity.Coupon;
import com.docking.heylo.dao.entity.CouponExample;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

public interface CouponMapper {

    long countByExample(CouponExample example);

    int deleteByExample(CouponExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(Coupon record);

    int insertSelective(Coupon record);

    List<Coupon> selectByExample(CouponExample example);

    Coupon selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") Coupon record, @Param("example") CouponExample example);

    int updateByExample(@Param("record") Coupon record, @Param("example") CouponExample example);

    int updateByPrimaryKeySelective(Coupon record);

    int updateByPrimaryKey(Coupon record);

    List<Map<String, Object>> list(@Param("promoCode") String promoCode, @Param("status") Integer status);




}